<?php /* Smarty version Smarty-3.1.8, created on 2012-05-20 07:04:54
         compiled from "application/views/templates\nav_bar.tpl" */ ?>
<?php /*%%SmartyHeaderCode:110544fa2674ca61860-79850095%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '62978e35430e331769139f5ea4e71d8d2436d78a' => 
    array (
      0 => 'application/views/templates\\nav_bar.tpl',
      1 => 1337497462,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '110544fa2674ca61860-79850095',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4fa2674cb89768_41949976',
  'variables' => 
  array (
    'user_sign_in' => 0,
    'realname' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fa2674cb89768_41949976')) {function content_4fa2674cb89768_41949976($_smarty_tpl) {?><div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
         
          <div class="nav-collapse">
            <ul class="nav">
              <li class="">
                <a href="/index.php">Home</a>
              </li>
	      <?php if ($_smarty_tpl->tpl_vars['user_sign_in']->value==true){?>
	      <li>
	        <a href="#" onclick="javascript:get_main('photo')">Photo</a>
	      </li>
	      <li>
	        <a href="#" onclick="javascript:get_main('diary')">Message</a>
	      </li>
	      <li style="margin-left:180px;margin-top:5px">
 			<input type="text" id="keyword" name="keyword" class="input-large search-query">
			<input type="button" class="btn btn-info" style="margin-top:0px" onclick="javascript:get_main('search')"  value="Search"></input>
			<input type="button" class="btn btn-primary" style="margin-top:0px" onclick="javascript:get_main('advanced_search')"  value="Advanced"></input>

 	      </li>
	      <?php }?>
	    </ul>
            <?php if ($_smarty_tpl->tpl_vars['user_sign_in']->value==false){?>
		<form class="well form-inline" id="nav_bar_form">
			<div id="c_username" class="control-group">
				 <span id="login_msg"></span>
 				 <input type="text" class="input-medium" name="i_username" id="i_username" placeholder="Email">
				 <input type="password" class="input-medium" name="i_pwd" id="i_pwd" placeholder="Password">
				<label type="checkbox"><input type="checkbox"><span>  remember me </span></label>
				 <input type="button" class="btn" onclick="javascript:chk_user()" value="Sign In"></input>
				 <input  type="button" id="pop-register" class="btn" onclick="javascrpt:pop_reg_form()" value="Sign Up"></input>
			</div>
		</form>
	    <?php }else{ ?>
		<form class="well form-inline" id="nav_bar_form">
			Welcome <?php echo $_smarty_tpl->tpl_vars['realname']->value;?>

			<a href="#" onclick="javascript:log_out();">Log Out</a>
	         </form>
            <?php }?>
          </div>
        </div>
      </div>
</div>
<?php }} ?>